Returns -1 if an invalid attribute or value is specified, 0 otherwise.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
sssspppphhhhmmmmooooddddeeee is used to specify the attributes of a sphere.
The sphere attributes and valid settings are as follows:
SSSSPPPPHHHH____TTTTEEEESSSSSSSS
selects the type of sphere tesselation. Valid settings for
tesselation are: SSSSPPPPHHHH____OOOOCCCCTTTT, SSSSPPPPHHHH____IIIICCCCOOOOSSSS, SSSSPPPPHHHH____BBBBAAAARRRRYYYY, SSSSPPPPHHHH____CCCCUUUUBBBBEEEE, and
SSSSPPPPHHHH____BBBBIIIILLLLIIIINNNN. These constants correspond to algorithms that tesselate a
sphere into polygons based on the following types of tesselation:
octahedral, icosahedral, barycentric, cubic, and bilinear
tesselation. The octahedral, icosahedral, and cubic methods
tesselate by subdividing the original faces of the base form. The
barycentric method guarantees that all of the triangles have equal
area and has the same number of triangles as the octahedral
tesselation. The bilinear tesselation is the traditional
longitude-latitude method. The default tesselation is SSSSPPPPHHHH____OOOOCCCCTTTT.
SSSSPPPPHHHH____DDDDEEEEPPPPTTTTHHHH
sets depth of sphere tesselation. The number of polygons in a sphere
is a function of the tesselation type, depth, and primitive used.
Higher depth values result in more polygons, and hence a smoother
looking sphere that takes longer to draw. Valid settings for sphere
depth are any value from 1 to SSSSPPPPHHHH____MMMMAAAAXXXXDDDDEEEEPPPPTTTTHHHH, inclusive. The default
sphere depth is 5.
SSSSPPPPHHHH____PPPPRRRRIIIIMMMM
selects the GL drawing primitive. Valid settings for sphere
primitive are: SSSSPPPPHHHH____PPPPOOOOLLLLYYYY, SSSSPPPPHHHH____MMMMEEEESSSSHHHH, SSSSPPPPHHHH____LLLLIIIINNNNEEEE, and SSSSPPPPHHHH____PPPPOOOOIIIINNNNTTTT. When
the primitive attribute is set to SSSSPPPPHHHH____PPPPOOOOLLLLYYYY, independent triangles or
quads are drawn, depending on the sphere tesselation type. When
using SSSSPPPPHHHH____MMMMEEEESSSSHHHH, tmeshes or qstrips are used. The default value for
the sphere primitive is SSSSPPPPHHHH____MMMMEEEESSSSHHHH.